<?php

require './MySQLDB.class.php';

class UserModel
{
    function getAllUser(){
        $config = array(
            'host' => 'localhost',
            'port' => '3306',
            'user' => 'root',
            'pass' => 'root',
            'charset' => 'utf8',
            'dbname' => 'tp5'
        );
        $sql = "select * from user";
        $db = MySQLDB::GetInstance($config);
        $data = mysql_query($sql);
    }
    function getUserCount(){
        $sql = "select count(*) as total from user";
        mysqli_connect();
    }
}